1
general::
An obnoxious know-it-all, a person who makes sarcastic or annoying remarks, as in The teacher was delighted that the worst wise guy in the class was moving out of town. [Slang; second half of 1800s] Also see SMART ALECK.
American Heritage Idioms